# $Id: PKGBUILD 71896 2012-06-03 00:25:44Z seblu $
# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>
# Contributor: Andrea Zucchelli <zukka77@gmail.com>

pkgname=iptstate
pkgver=2.2.5
pkgrel=1
pkgdesc='top-like interface to netfilter connection-tracking table'
arch=('i686' 'x86_64')
url='http://www.phildev.net/iptstate/'
license=('custom')
depends=('gcc-libs' 'ncurses' 'libnetfilter_conntrack')
source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2")
md5sums=('5abe47e473bee256adaf8a48b1141a90')

build() {
  cd $pkgname-$pkgver
  make
}

package() {
  cd $pkgname-$pkgver
  install -D -m755 $pkgname "$pkgdir/usr/sbin/$pkgname"
  install -D -m644 $pkgname.8 "$pkgdir/usr/share/man/man8/$pkgname.8"
  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim:set ts=2 sw=2 ft=sh et:
